<template>
  <el-container>
    <el-header>
      <i class=" el-icon-user-solid"></i>
      <h><font size="6" face="arial" color="black">个人主页</font></h>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <el-menu
            default-active="1"
            class="el-menu-vertical-demo">
          <router-link :to="{name:'PersonalInfo'}">
            <el-menu-item index="1">
              <i class="el-icon-user"></i>
              <span slot="title">个人信息</span>
            </el-menu-item>
          </router-link>
          <router-link :to="{name:'UploadModule'}">
            <el-menu-item index="2">
              <i class="el-icon-document"></i>
              <span slot="title">上传模组</span>
            </el-menu-item>
          </router-link>

          <router-link :to="{name:'CreatRoles'}">
            <el-menu-item index="3" >
              <i class="el-icon-user"></i>
              <span slot="title">创建角色</span>
            </el-menu-item>
          </router-link>

        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>

</template>

<script>
import PersonalInfo from "@/components/PersonalInfo";
export default {
  components: {PersonalInfo}
}
</script>

<style scoped>
.el-header, .el-footer {
  background-color: #B3C0D1;
  /*color: #333;*/
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #D3DCE6;
  /*color: #333;*/
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #E9EEF3;
  /*color: #333;*/
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
.el-icon-user-solid{
  font-size: 35px;
}

</style>
